import Vue from 'vue'
import App from './App'
import store from './store'
import router from './router'

// vab组件全局注册
import './plugins'
// vab组件全局注册
import '@/layouts/export'

// xTable组件
import TableHeaderContent from '@/components/TableHeaderContent.vue'
Vue.component('TableHeaderContent', TableHeaderContent)

// 解决elementui报错
Vue.directive('removeAriaHidden', {
  bind(el, binding) {
    const ariaEls = el.querySelectorAll('.el-radio__original')
    ariaEls.forEach((item) => {
      item.removeAttribute('aria-hidden')
    })
  }
})

import directive from '@/directive'
Vue.use(directive)
new Vue({
  el: '#vue-admin-better',
  router,
  store,
  render: (h) => h(App),
})
